package com.blackcat.annotation.configuration.config;

import com.blackcat.annotation.bean.bean.User;
import com.blackcat.annotation.configuration.App;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p> 描述 ：@Configuration 声明当前类为配置类
 * @author : blackcat
 * @date : 2020/5/23 16:08
 */
@Configuration
public class MyConfig {

    /**
     * <p> 描述 : bean
     * @author : blackcat
     * @date  : 2020/5/23 16:20
     * @see App ctx.getBean("user") 得到bean
    */
    @Bean
    public User user(){
        return new User();
    }


}
